﻿<%@ Page Language="C#" MasterPageFile="~/User/UserMasterPage.master" AutoEventWireup="true" CodeFile="RegistrationMember.aspx.cs" Inherits="User_RegistrationMember" Title="QnA" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:Panel ID="Panel1" runat="server" GroupingText="Đăng ký thành viên" Width="95%" Height="80%" BorderStyle="None" ForeColor="Red">
        <br />
        <table width="100%">
            <tr>
                <td style="width: 287px; text-align: left">
                    Email &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;
                    &nbsp; &nbsp; &nbsp; &nbsp; :</td>
                <td style="width: 371px; text-align: left">
                    <asp:TextBox ID="txtEmail" runat="server" MaxLength="50" Width="305px" CausesValidation="True"></asp:TextBox>*</td>
                <td style="text-align: left; width: 393px;">
                    &nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtEmail"
                        ErrorMessage="*Nhập  Email"></asp:RequiredFieldValidator>
                    <br />
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtEmail"
                        ErrorMessage="* Nhập lại  Email" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator><br />
                    <asp:Label ID="Label1" runat="server" Width="77px"></asp:Label></td>
            </tr>
            <tr>
                <td style="width: 287px; text-align: left">
                    Password &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; :</td>
                <td style="width: 371px; text-align: left">
                    <asp:TextBox ID="txtPassword" runat="server" MaxLength="10" TextMode="Password" Width="305px"></asp:TextBox>*</td>
                <td style="text-align: left; width: 393px;">
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtPassword"
                        ErrorMessage="* Nhập Password"></asp:RequiredFieldValidator>
                    <br />
                    <br />
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator5" runat="server" ControlToValidate="txtPassword"
                        ErrorMessage="* Password gồm 6 đến 10 ký tự" ValidationExpression="\w{6,10}"></asp:RegularExpressionValidator></td>
            </tr>
            <tr>
                <td style="width: 287px; text-align: left">
                    Tên đăng nhập&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:</td>
                <td style="width: 371px; text-align: left">
                    <asp:TextBox ID="txtUsername" runat="server" MaxLength="40" Width="305px"></asp:TextBox>*</td>
                <td style="text-align: left; width: 393px;">
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtUsername"
                        ErrorMessage="* Nhập tên"></asp:RequiredFieldValidator></td>
            </tr>
            <tr>
                <td style="width: 287px; text-align: left; height: 22px;">
                    Giới tính &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; :</td>
                <td style="width: 371px; text-align: left; height: 22px;">
                    <asp:RadioButton ID="rbMale" runat="server" GroupName="sex" Text="Nam" Checked="True" />
                    <asp:RadioButton ID="rbFemale" runat="server" GroupName="sex" Text="Nữ" /></td>
                <td style="text-align: left; width: 393px; height: 22px;">
                </td>
            </tr>
            <tr>
                <td style="width: 287px; text-align: left; height: 77px;">
                    Địa chỉ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; :</td>
                <td style="width: 371px; text-align: left; height: 77px;">
                    <asp:TextBox ID="txtAdress" runat="server" Height="64px" MaxLength="150" Rows="3"
                        TextMode="MultiLine" Width="305px"></asp:TextBox></td>
                <td style="text-align: left; height: 77px; width: 393px;">
                    </td>
            </tr>
            <tr>
                <td style="width: 287px; text-align: left; height: 26px;">
                    Số phone &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:</td>
                <td style="width: 371px; text-align: left; height: 26px;">
                    <asp:TextBox ID="txtPhone" runat="server" MaxLength="15" 
                        Width="305px"></asp:TextBox></td>
                <td style="text-align: left; width: 393px; height: 26px;">
                    <br />
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" ControlToValidate="txtPhone"
                        ErrorMessage="* Nhập lại  Phone" ValidationExpression="\d+"></asp:RegularExpressionValidator></td>
            </tr>
            <tr>
                <td style="width: 287px; text-align: left">
                    Địa chỉ email khác &nbsp;&nbsp; :</td>
                <td style="width: 371px; text-align: left">
                    <asp:TextBox ID="txtAlternativeEmail" runat="server" MaxLength="40" Width="305px"></asp:TextBox></td>
                <td style="text-align: left; width: 393px;">
                    <br />
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="txtAlternativeEmail"
                        ErrorMessage="* Nhập lại  Email" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator></td>
            </tr>
            <tr>
                <td style="width: 287px; text-align: left">
                    Số CMTND &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:</td>
                <td style="width: 371px; text-align: left">
                    <asp:TextBox ID="txtCNTND" runat="server" MaxLength="9" Width="305px"></asp:TextBox>*</td>
                <td style="text-align: left; width: 393px;">
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ControlToValidate="txtCNTND"
                        ErrorMessage="*Nhập  số CMTND"></asp:RequiredFieldValidator><br />
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator4" runat="server" ControlToValidate="txtCNTND"
                        ErrorMessage="* Nhập lại  9 số CMTND" ValidationExpression="\d{9}"></asp:RegularExpressionValidator></td>
            </tr>
            <tr>
                <td style="width: 287px; text-align: left">
                </td>
                <td style="width: 371px; text-align: left;">
                    &nbsp;* Bắt buộc phải nhập<br />
                    <asp:Label ID="Label2" runat="server"></asp:Label></td>
                <td style="width: 393px">
                </td>
            </tr>
            <tr>
                <td style="width: 287px; text-align: left">
                </td>
                <td style="width: 371px; text-align: left">
                    <asp:Button ID="Button1" runat="server" Text="Đăng ký" Width="99px" OnClick="Button1_Click" /></td>
                <td style="text-align: left; width: 393px;">
                </td>
            </tr>
        </table>
    </asp:Panel>
</asp:Content>

